package com.client.koshercook.client;

import java.io.IOException;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService  {
	
	ClientResponse greetServer(ClientRequest request) throws IllegalArgumentException, IOException;
	
	List<String> getInitData();
	
	RecipeDetails getRecipeInfo(String link);
	
	Integer getNewGrade(String link, int grade);
	
	Integer getNewCookTime(String link, int cookTime);
	
	Integer addAlterToRecipe(String link, String original, String alter);

	Integer sendNewRecipe(String recipeName, String instructions, String ingredients, String type);
	
	List<String> getUserFridgeIngredients();
	
	List<String> getUserViewdedRecipes();
	
	Boolean updateMyFridge(List<String> userList, boolean req);
	
	Boolean deleteUserFavorites(String rec_link);
	
	Boolean addComment(String link, String comment);
	
	String logIn();
	
	String logOut();
	
	String isUser();
	
	List<String> getUserFavorites();
	
	Integer addUserFavorites(String rec_link);
	
	Boolean sendMail(String desMail, String content);
}
